package cn.kongwg;

import cn.kongwg.car.Car;
import cn.kongwg.factory.BMWCarFactory;
import cn.kongwg.factory.CarFactory;

/**
 * @author kongwg
 * @create 2021-05-16 9:41
 */
public class TestDemo {
    public static void main(String[] args) {
        CarFactory factory = new BMWCarFactory();
        Car car = factory.cerateCar();
        car.run();
    }
}
